package com.dz51.core.log4j.appender;

import java.io.IOException;

import org.apache.log4j.RollingFileAppender;

import com.dz51.core.utils.PropertiesConfig;
/**
 * @Title: SubRollingFileAppender.java
 * @Package com.dz51.core.log4j.appender
 * @Description: 重些log4j 日志文件目录RollingFile
 * @author Zhaoqt  
 * @date 2014-5-10 上午5:43:11
 * @version V1.0
 */
public class SubRollingFileAppender extends RollingFileAppender{

	@Override
	public synchronized void setFile(String fileName, boolean append,
			boolean bufferedIO, int bufferSize) throws IOException {
		fileName = PropertiesConfig.getProperty("log4j.logFile") + PropertiesConfig.getProperty("log4j.rollingFile");
		super.setFile(fileName, append, bufferedIO, bufferSize);
	}
	
}
